package android.Dominion.GameBLL.Cards;

import java.util.ArrayList;

public class CardPile extends ArrayList<Card>
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CardPile TakeTopCards(int number)
	{
		CardPile cards = new CardPile();

		for (int i = 0; i < number; i++)
		{
			cards.add(this.remove(0));
		}

		return cards;
	}

}
